<template>
    <div v-show="userState.isShowLogin">
        <Login/>
        <weChatLogin/>
        <regist/>
        <wxBind/>
        <div class="black_bg"></div>
    </div>
</template>

<script setup>
import Login from './login.vue'
import weChatLogin from './loginWechat.vue'
import regist from './regist.vue';
import wxBind from './wechatBind.vue';
import { useUserStore } from '../../store/user';
const { userState } = useUserStore()

</script>

<style scoped>

.login_container, 
.codeLogin_container {
    background: linear-gradient(180deg, rgba(161, 166, 190, 1) 0%, rgba(148, 129, 183, 1) 51.99999809265137%, rgba(174, 149, 250, 1) 100%);
    border-radius: 6px;
    width: 576px;
    height: 570px;
    padding: 50px 0;
    box-sizing: border-box;
    font-size: 14px;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
}

.el-form-item {
    margin-bottom: 30px;
}

.el-input {
    --el-input-focus-border-color: #FFF !important;
}

:deep(.el-form-item__label) {
  color: #FFF;
}

:deep(.el-input__wrapper) {
  background: none;
  border: none !important;
  width: 300px;
  height: 34px;
  
}

:deep(.el-input__inner) {
  color: #FFF;
}

:deep(.el-input__password) svg{
  color: #FFF;
}

:deep(.el-form-item.is-error .el-input__wrapper)
 {
    box-shadow: 0 0 0 1px #FFF !important;
    /* color: yellow; */
}

:deep(.el-form-item__error) {
    /* color: red; */
    /* color:#f272ff; */
    margin-top: 2px;
}



.regist_findpass {
    width: 75%;
    height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 50px;
}

.regist_findpass a {
    color: #7848f1
}

.black_bg {
    background-color: rgba(0,0,0,.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}



input:-webkit-autofill {
  /* transition: background-color 5000s ease-in-out 0s; */
  background-color: transparent !important;
  color: white !important;
}

/* 进一步保证 autofill 输入框内部的文字和背景样式 */
input:-webkit-autofill::first-line {
  color: white !important;
  background-color: transparent !important;
}

/* 可选: 解决浏览器中 focus 时的样式干扰 */
input:focus:-webkit-autofill {
  background-color: transparent !important;
  color: white !important;
}

</style>

